]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Remove UNKNOWN security type
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 25 Apr 2013 20:38:05 +0000 (16:38 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 26 Apr 2013 16:16:05 +0000 (12:16 -0400)
It's unused.

https://bugzilla.gnome.org/show_bug.cgi?id=698918

js/ui/status/network.js

index f4ff9196b9ea2f46726161dd84d0f6d9a7ec1af5..9eb811fcd1551d60e72493e4d76d82c224b1d20b 100644 (file)
@@ -27,7 +27,6 @@ const NMConnectionCategory = {
 };
 
 const NMAccessPointSecurity = {
-    UNKNOWN: 0,
     NONE: 1,
     WEP: 2,
     WPA_PSK: 3,
@@ -109,8 +108,7 @@ const NMNetworkMenuItem = new Lang.Class({
         this._icons.add_actor(this._signalIcon);
 
         this._secureIcon = new St.Icon({ style_class: 'popup-menu-icon' });
-        if (this.bestAP._secType != NMAccessPointSecurity.UNKNOWN &&
-            this.bestAP._secType != NMAccessPointSecurity.NONE)
+        if (this.bestAP._secType != NMAccessPointSecurity.NONE)
             this._secureIcon.icon_name = 'network-wireless-encrypted-symbolic';
         this._icons.add_actor(this._secureIcon);
     },